#ifndef HEADER
#define HEADER
#include <iostream>
#include <curl/curl.h>
#include <nlohmann/json.hpp>
#include <fstream>
#include <stdlib.h>
#include <regex>
#include <string>
#include <cstring>
#include <unistd.h>
#endif

using namespace std;
using json=nlohmann::json;

int main()
{
    std::string date;
    std::getline(cin,date);
    struct tm timeinfo={};
    std::istringstream ss(date);
    ss>>std::get_time(&timeinfo,"%Y-%m-%d %H:%M:%S");
    long timestamp=(long)std::mktime(&timeinfo);
    long times=(long)time(0);

    while(1)
    {
        time_t timestamps=time(0);
        std::tm local_time=*std::localtime(&timestamps);
        cout << put_time(&local_time,"%Y-%m-%d %H:%M:%S")<<endl;

        if(times>=timestamp){
            break;
        }
        times++;
        //滴嗒定时器开始
        sleep(1);
    }
    cout<< "timeout!!!"<<endl;
    return 0;
}

